import Cookies from 'js-cookie'

const TokenKey = 'user_id'
const TypeKey = 'type'

export function getUserId() {
  return Cookies.get(TokenKey)
}

export function setUserId(id) {
  return Cookies.set(TokenKey, id)
}

export function removeUserId() {
  return Cookies.remove(TokenKey)
}

export function getType() {
  return Cookies.get(TypeKey)
}

export function setType(val) {
  return Cookies.set(TypeKey, val)
}

export function removeType() {
  return Cookies.remove(TypeKey)
}